import copy
num=input("请输入数组，长度范围1~10，用逗号隔开")
nums=num.split(",")

a=[[]]
for i in range(len(nums)):
    m=copy.deepcopy(a)          #多维数组采用深拷贝，一维数组可用a.copy()
    for j in range(len(a)):
        m[j].append(nums[i])
        a.append(m[j])
print(a)